package com.example.flowermall.mapper;

import com.example.flowermall.entity.Role;
import com.example.flowermall.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoman
 * @since 2023-05-30
 */
public interface UserMapper extends BaseMapper<User> {

    User selectUser(String username);
    List<String> getRoleNameByUserId(Integer id);
    List<User> selectUsers(String username);

    User selectUserByOpenId(String openId);
}
